package com.yyr.callmessage.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class SystemConfig {

    public static final String Version = "/1.0/";
    public static final String RoleUser = "user";
    public static final String RoleAdmin = "admin";
    public static final String RoleGlobal = "global";
    public static final String RoleThird = "third";
    public static final String RoleFactor = "factor";
    public static final String UserPath = Version + RoleUser;
    public static final String AdminPath = Version + RoleAdmin;
    public static final String GlobalPath = Version + RoleGlobal;
    public static final String ThirdPath = Version + RoleThird;
    public static final String FactorPath = Version + RoleFactor;

    public static final String PlatformWeb = "web";
    public static final String PlatformMobile = "mobile";

/*    @Value("${spring.profiles.active}")
    private String env;

    public boolean isDeveloper() {
        return env.equalsIgnoreCase("dev");
    }*/

/*    public boolean isProd() {
        return env.equalsIgnoreCase("prod");
    }*/


}
